export const optionReddValue = {
	"tooltip": {
		"trigger": "axis",
		"axisPointer": {
			"lineStyle": {
				"color": "#57617B"
			}
		},
		"formatter": "上月{b0}日: {c0}<br />本月{b1}日: {c1}"
	},
	"legend": {
		"icon": "rect",
		"itemWidth": 40,
		"itemHeight": 3,
		"itemGap": 100,
		"data": ["本月用电", "上月用电"],
		"bottom": "0",
		"textStyle": {
			"fontSize": 12,
			"color": "#fff"
		}
	},
	"grid": {
		"height": "75%",
		"left": "5%",
		"right": "6%",
		"bottom": "10%",
		"containLabel": true
	},
	"xAxis": [{
		"type": "category",
		"boundaryGap": false,
		"axisLine": {
			"show": false,
			"lineStyle": {
				"color": "#fff"
			}
		},
		"axisTick": {
			"show": false
		},
		"data": ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15",
			"16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30"
		]
	}],
	"yAxis": [{
		"type": "value",
		"name": "",
		"axisTick": {
			"show": false
		},
		"axisLine": {
			"textStyle": {
				"color": "#fff"
			},
			"lineStyle": {
				"color": "rgba(255,255,255,.3)"
			}
		},
		"axisLabel": {
			"margin": 10,
			"textStyle": {
				"fontSize": 14,
				"color": "#fff"
			}
		},
		"splitLine": {
			"lineStyle": {
				"color": "#57617B"
			}
		}
	}],
	"series": [{
		"name": "上月用电",
		"type": "line",
		"smooth": true,
		"symbol": "circle",
		"symbolSize": 5,
		"showSymbol": false,
		"lineStyle": {
			"normal": {
				"width": 1
			}
		},
		"areaStyle": {
			"normal": {
				"color": {
					"colorStops": [{
						"offset": 0,
						"color": "rgba(137, 189, 27, 0.3)"
					}, {
						"offset": 0.8,
						"color": "rgba(137, 189, 27, 0)"
					}],
					"x": 0,
					"y": 0,
					"x2": 0,
					"y2": 1,
					"type": "linear",
					"global": false
				},
				"shadowColor": "rgba(0, 0, 0, 0.1)",
				"shadowBlur": 10
			}
		},
		"itemStyle": {
			"normal": {
				"color": "rgb(51, 163, 225)",
				"borderWidth": 12
			}
		},
		"data": ["139.00", "113.00", "136.00", "263.00", "245.00", "130.00", "16.00", "53.00", "11.00",
			"13.00", "88.00", "139.00", "74.00", "286.00", "247.00", "194.00", "198.00", "197.00",
			"252.00", "201.00", "190.00", "96.00", "236.00", "251.00", "223.00", "241.00", "229.00",
			"238.00", "33.00", "154.00"
		]
	}, {
		"name": "本月用电",
		"type": "line",
		"smooth": true,
		"symbol": "circle",
		"symbolSize": 5,
		"showSymbol": false,
		"lineStyle": {
			"normal": {
				"width": 1
			}
		},
		"areaStyle": {
			"normal": {
				"color": {
					"colorStops": [{
						"offset": 0,
						"color": "rgba(0, 136, 212, 0.3)"
					}, {
						"offset": 0.8,
						"color": "rgba(0, 136, 212, 0)"
					}],
					"x": 0,
					"y": 0,
					"x2": 0,
					"y2": 1,
					"type": "linear",
					"global": false
				},
				"shadowColor": "rgba(0, 0, 0, 0.1)",
				"shadowBlur": 10
			}
		},
		"itemStyle": {
			"normal": {
				"color": "rgb(76, 208, 199)",
				"borderColor": "rgba(0,136,212,0.2)",
				"borderWidth": 12
			}
		},
		"data": ["246.00", "261.00", "224.00", "210.00", "259.00", "276.00", "272.00", "244.00", "215.00",
			"253.00", "272.00", "284.00", "265.00", "294.00", "258.00", "204.00", "214.00", "199.00",
			"0.00", "0.00", "0.00", "0.00", "0.00", "0.00", "0.00", "0.00", "0.00", "0.00", "0.00",
			"0.00"
		]
	}]
};
export const optionCarbonValue = {
	tooltip: {
		trigger: 'axis',
		axisPointer: {
			lineStyle: {
				color: '#57617B',
			},
		},
	},
	legend: {
		icon: 'rect',
		itemWidth: 40,
		itemHeight: 3,
		itemGap: 100,
		data: ['上年度碳排放', '本年度碳排放'],
		bottom: '-1',
		textStyle: {
			fontSize: 12,
			color: '#fff',
		},
	},
	grid: {
		width: '98%',
		height: '80%',
		left: '0%',
		right: '1%',
		bottom: '20',
		containLabel: true,
	},
	xAxis: [{
		type: 'category',
		boundaryGap: false,
		axisLine: {
			show: false,
			lineStyle: {
				color: '#fff',
			},
		},
		axisTick: {
			show: false,
		},
		data: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
	}, ],
	yAxis: [{
		type: 'value',
		name: '',
		axisTick: {
			show: false,
		},
		axisLine: {
			textStyle: {
				color: '#fff',
			},
			lineStyle: {
				color: 'rgba(255,255,255,.3)',
			},
		},
		axisLabel: {
			margin: 10,
			textStyle: {
				fontSize: 14,
				color: '#fff',
			},
		},
		splitLine: {
			lineStyle: {
				color: '#57617B',
			},
		},
	}, ],
	series: [{
			name: '上年度碳排放',
			type: 'line',
			smooth: true,
			symbol: 'circle',
			symbolSize: 5,
			showSymbol: false,
			lineStyle: {
				normal: {
					width: 1,
				},
			},
			areaStyle: {
				normal: {
					color: {
						colorStops: [{
							offset: 0,
							color: 'rgba(137, 189, 27, 1)',
						}, {
							offset: 0.8,
							color: 'rgba(137, 189, 27, 0.3)'
						}],
					},
					shadowColor: 'rgba(0, 0, 0, 0.1)',
					shadowBlur: 10,
				},
			},
			itemStyle: {
				normal: {
					color: 'rgb(51, 163, 225)',
					// borderColor: 'rgba(137,189,2,0.27)',
					borderWidth: 12,
				},
			},
			data: [0, 11, 22, 33, 33, 33, 66, 33, 33, 33, 22, 0],
		},
		{
			name: '本年度碳排放',
			type: 'line',
			smooth: true,
			symbol: 'circle',
			symbolSize: 5,
			showSymbol: false,
			lineStyle: {
				normal: {
					width: 1,
				},
			},
			areaStyle: {
				normal: {
					color: {
						colorStops: [{
							offset: 0,
							color: 'rgba(0, 136, 212, 1)',
						}, {
							offset: 0.8,
							color: 'rgba(0, 136, 212, 0.3)'
						}],
					},
					shadowColor: 'rgba(0, 0, 0, 0.1)',
					shadowBlur: 10,
				},
			},
			itemStyle: {
				normal: {
					color: 'rgb(76, 208, 199)',
					borderColor: 'rgba(0,136,212,0.2)',
					borderWidth: 12,
				},
			},
			data: [11, 36, 22, 0, 66, 0, 22, 8, 0, 11, 66, 0],
		},
	],
};

export const optionCarbonEValue = {
	tooltip: {
		trigger: 'item'
	},
	legend: {
		orient: 'vertical',
		show: true,
		top: '5%',
		left: '48%',
		icon: 'rect',
		type: 'scroll',
		it: 'rect',
		itemWidth: 18,
		itemHeight: 6,
		textStyle: {
			rich: {
				whiteF: {
					color: '#fff',
					padding: [0, 8, 0, 2],
					width: 60
				},
				ml: {
					color: '#fff',
					padding: [0, 6, 0, 0]
				},
				ml2: {
					color: '#93D8FF',
					padding: [0, 10, 0, 0]
				}
			}
		}
	},
	series: [{
		name: 'airtouee',
		type: 'pie',
		left: '-50%',
		radius: ['70%', '90%'],
		avoidLabelOverlap: false,
		itemStyle: {
			normal: {
				borderRadius: 0,
				borderColor: '#fff',
				borderWidth: 0
			}
		},
		label: {
			show: false,
			position: 'center'
		},
		emphasis: {
			label: {
				show: true,
				fontSize: '16',
				fontWeight: 'bold',
				rich: {
					fw: {
						fontWeight: 'bold'
					},
					whiteF: {
						color: '#fff',
						fontSize: 20,
						textAlign: 'center',
						padding: [0, 0, 6, 0]
					},
					ml: {
						color: '#fff',
						fontSize: 16,
						padding: [0, 0, 6, 0],
						textAlign: 'center'
					},
					ml2: {
						color: '#93D8FF',
						ontSize: 16,
						padding: [0, 0, 0, 0],
						textAlign: 'center'
					}
				}
			}
		},
		labelLine: {
			show: false
		},
		animationTypeUpdate: 'expansion',
		data: [{
			name: '建筑',
			value: '20.0000',
			color: '#1152FD',
			precent: 20
		}, {
			name: '可再生能源',
			value: '30.0000',
			color: '#57DAF2',
			precent: 30
		}, {
			name: '绿色碳汇',
			value: '50.0000',
			color: '#5CAAFF',
			precent: 50
		}],
		height: '100%'
	}],
	boxShadowNone: true
};
export const optionBottomLeftAValue = {
	"grid": {
		"bottom": "3%",
		"height": "80%",
		"top": "10%"
	},
	"series": [{
		"data": [285336],
		"type": "bar",
		"xAxisIndex": 0,
		"silent": true,
		"barWidth": 16,
		"tooltip": {
			"show": false
		},
		"itemStyle": {
			"color": "none",
			"borderColor": "#25435B",
			"borderWidth": 1
		}
	}, {
		"name": "类目1",
		"stack": "Ad",
		"data": [256802],
		"type": "bar",
		"barWidth": 16,
		"tooltip": {
			"show": false
		},
		"xAxisIndex": 1,
		"itemStyle": {
			"color": "#76DBFB"
		}
	}, {
		"name": "类目2",
		"type": "bar",
		"stack": "Ad",
		"xAxisIndex": 1,
		"data": [256802],
		"barWidth": 16,
		"tooltip": {
			"show": false
		},
		"itemStyle": {
			"color": {
				"colorStops": [{
					"offset": 0,
					"color": "#264B5F"
				}, {
					"offset": 1,
					"color": "#182136"
				}],
				"x": 0,
				"y": 0,
				"x2": 0,
				"y2": 1,
				"type": "linear",
				"global": false
			}
		},
		"label": {
			"show": false,
			"position": "top",
			"offset": [-30, 5],
			"color": "#B0ECFF"
		}
	}, {
		"name": "类目2",
		"type": "bar",
		"stack": "Ad",
		"xAxisIndex": 1,
		"data": [0.0000001],
		"barWidth": 16,
		"itemStyle": {
			"color": "none",
			"borderColor": "#25435B"
		},
		"label": {
			"show": false,
			"position": "top",
			"offset": [-30, 5],
			"color": "#B0ECFF"
		}
	}],
	"xAxis": [{
		"data": [],
		"axisLine": {
			"show": false
		},
		"axisLabel": {
			"show": false
		},
		"axisTick": {
			"show": false
		}
	}, {
		"data": [],
		"axisLine": {
			"show": false
		},
		"axisLabel": {
			"show": false
		},
		"axisTick": {
			"show": false
		}
	}],
	"yAxis": {
		"axisLine": {
			"show": false
		},
		"axisLabel": {
			"show": false
		},
		"axisTick": {
			"show": false
		},
		"splitLine": {
			"show": false
		},
		"max": "dataMax"
	}
};
export const optionBottomLeftBValue = {
	"grid": {
		"bottom": "1%",
		"height": "80%",
		"top": "10%"
	},
	"series": [{
		"data": [285336],
		"type": "bar",
		"xAxisIndex": 0,
		"silent": true,
		"barWidth": 16,
		"tooltip": {
			"show": false
		},
		"itemStyle": {
			"color": "none",
			"borderColor": "#25435B",
			"borderWidth": 1
		}
	}, {
		"name": "类目1",
		"stack": "Ad",
		"data": [30816],
		"type": "bar",
		"barWidth": 16,
		"xAxisIndex": 1,
		"itemStyle": {
			"color": "#76DBFB"
		},
		"label": {
			"show": false,
			"position": "top",
			"offset": [-30, 5],
			"color": "#B0ECFF"
		}
	}, {
		"name": "类目2",
		"type": "bar",
		"stack": "Ad",
		"xAxisIndex": 1,
		"data": [25680],
		"barWidth": 16,
		"itemStyle": {
			"color": {
				"colorStops": [{
					"offset": 0,
					"color": "#264B5F"
				}, {
					"offset": 1,
					"color": "#182136"
				}],
				"x": 0,
				"y": 0,
				"x2": 0,
				"y2": 1,
				"type": "linear",
				"global": false
			}
		},
		"label": {
			"show": true,
			"position": "top",
			"offset": [-30, 5],
			"color": "#B0ECFF"
		}
	}, {
		"name": "类目2",
		"type": "bar",
		"stack": "Ad",
		"xAxisIndex": 1,
		"data": [0.0000001],
		"barWidth": 16,
		"itemStyle": {
			"color": "none",
			"borderColor": "#25435B"
		},
		"label": {
			"show": false,
			"position": "top",
			"offset": [-30, 5],
			"color": "#B0ECFF"
		}
	}],
	"xAxis": [{
		"data": [],
		"axisLine": {
			"show": false
		},
		"axisLabel": {
			"show": false
		},
		"axisTick": {
			"show": false
		}
	}, {
		"data": [],
		"axisLine": {
			"show": false
		},
		"axisLabel": {
			"show": false
		},
		"axisTick": {
			"show": false
		}
	}],
	"yAxis": {
		"axisLine": {
			"show": false
		},
		"axisLabel": {
			"show": false
		},
		"axisTick": {
			"show": false
		},
		"splitLine": {
			"show": false
		},
		"max": "dataMax"
	}
};
export const optionBottomCenterValue = {
	"series": [{
		"type": "liquidFill",
		"radius": "75%",
		"center": ["55%", "55%"],
		"data": ["0.55", "0.55", "0.55"],
		"color": ["rgba(43, 75, 108)"],
		"backgroundStyle": {
			"borderWidth": 1,
			"color": "rgb(1, 12, 27,0.2)"
		},
		"label": {
			"normal": {
				"textStyle": {
					"fontSize": 24,
					"color": "#7BB6D8",
					"fontFamily": "pieFont"
				}
			}
		},
		"outline": {
			"show": false
		}
	}, {
		"type": "pie",
		"center": ["55%", "55%"],
		"radius": ["82%", "80%"],
		"hoverAnimation": false,
		"data": [{
			"name": "",
			"value": 5,
			"labelLine": {
				"show": false
			},
			"emphasis": {
				"labelLine": {
					"show": false
				},
				"itemStyle": {
					"color": "#76DBFB",
					"normal": {
						"borderColor": "red",
						"borderWidth": 2
					}
				}
			}
		}, {
			"name": "",
			"value": 400,
			"labelLine": {
				"show": false
			},
			"itemStyle": {
				"color": "#81C3F7",
				"normal": {
					"borderColor": "#89CDFF",
					"borderWidth": 1
				}
			},
			"label": {
				"borderRadius": "100%"
			},
			"emphasis": {
				"labelLine": {
					"show": false
				},
				"itemStyle": {
					"color": "#81C3F7"
				}
			}
		}, {
			"name": "",
			"value": 2,
			"labelLine": {
				"show": false
			},
			"itemStyle": {
				"color": "#81C3F7"
			},
			"emphasis": {
				"labelLine": {
					"show": false
				},
				"itemStyle": {
					"color": "#81C3F7"
				}
			}
		}, {
			"name": "",
			"value": 88,
			"itemStyle": {
				"color": "#81C3F7"
			},
			"label": {
				"show": false
			},
			"labelLine": {
				"show": false
			},
			"emphasis": {
				"labelLine": {
					"show": false
				},
				"itemStyle": {
					"color": "#81C3F7"
				}
			}
		}]
	}]
};
const formatterarray = [{
	name: '电梯用电',
	value: 1.01
}, {
	name: '新风用电',
	value: 21.1
}, {
	name: '暖通用电',
	value: 54.3
}, {
	name: '照明用电',
	value: 17.6
}, {
	name: '插座用电',
	value: 5.5
}, {
	name: '其他用电',
	value: 0.5
}];
export const optionBottomRightValue = {
	"title": {
		"text": "{a|能耗\n占比}",
		"x": "22%",
		"y": "center",
		"textStyle": {
			"rich": {
				"a": {
					"fontSize": 16,
					"color": "#fff",
					"lineHeight": "22"
				}
			}
		}
	},
	"legend": {
		"right": "2%",
		"top": "10%",
		"icon": "circle",
		"orient": "vertical",
		"itemWidth": 30,
		"itemHeight": 16,
		"borderRadius": 5,
		"type": "scroll",
		formatter: (name) => {
			for (let index = 0; index < formatterarray.length; index++) {
				if (formatterarray[index].name === name) {
					return `{name|${name.replaceAll('用电', '')}}{value|${formatterarray[index].value}}{unit|%}`;
				}
			}
		},
		"data": [{
			"itemStyle": {
				"color": "#3D81F3"
			},
			"value": "1.0",
			"code": "power_lift",
			"name": "电梯用电",
			"unit": "千瓦时"
		}, {
			"itemStyle": {
				"color": "#75F36C"
			},
			"value": "21.1",
			"code": "power_newwind",
			"name": "新风用电",
			"unit": "千瓦时"
		}, {
			"itemStyle": {
				"color": "#76DBFB"
			},
			"value": "54.3",
			"code": "power_hvac",
			"name": "暖通用电",
			"unit": "千瓦时"
		}, {
			"itemStyle": {
				"color": "#FFEE73"
			},
			"value": "17.6",
			"code": "power_lighting",
			"name": "照明用电",
			"unit": "千瓦时"
		}, {
			"itemStyle": {
				"color": "#A56CFA"
			},
			"value": "5.5",
			"code": "power_jack",
			"name": "插座用电",
			"unit": "千瓦时"
		}, {
			"itemStyle": {
				"color": "#FFAF66"
			},
			"value": "0.5",
			"code": "power_other",
			"name": "其他用电",
			"unit": "千瓦时"
		}],
		"textStyle": {
			"rich": {
				"name": {
					"color": "#fff"
				},
				"value": {
					"color": "#93D8FF",
					"fontSize": 12,
					"fontFamily": "pieFont",
					"padding": [0, 0, 0, 10]
				},
				"unit": {
					"color": "#93D8FF",
					"fontSize": 12
				}
			}
		}
	},
	"series": [{
		"name": "",
		"type": "pie",
		"right": "40%",
		"radius": ["80%", "76%"],
		"label": {
			"show": false
		},
		"labelLine": {
			"show": false
		},
		"itemStyle": {
			"borderRadius": 20,
			"borderWidth": 20
		},
		"data": [{
			"itemStyle": {
				"color": "#3D81F3"
			},
			"value": "1.0",
			"code": "power_lift",
			"name": "电梯用电",
			"unit": "千瓦时"
		}, {
			"itemStyle": {
				"color": "#75F36C"
			},
			"value": "21.1",
			"code": "power_newwind",
			"name": "新风用电",
			"unit": "千瓦时"
		}, {
			"itemStyle": {
				"color": "#76DBFB"
			},
			"value": "54.3",
			"code": "power_hvac",
			"name": "暖通用电",
			"unit": "千瓦时"
		}, {
			"itemStyle": {
				"color": "#FFEE73"
			},
			"value": "17.6",
			"code": "power_lighting",
			"name": "照明用电",
			"unit": "千瓦时"
		}, {
			"itemStyle": {
				"color": "#A56CFA"
			},
			"value": "5.5",
			"code": "power_jack",
			"name": "插座用电",
			"unit": "千瓦时"
		}, {
			"itemStyle": {
				"color": "#FFAF66"
			},
			"value": "0.5",
			"code": "power_other",
			"name": "其他用电",
			"unit": "千瓦时"
		}]
	}, {
		"type": "pie",
		"right": "40%",
		"radius": ["60%", "61%"],
		"data": [{
			"value": 0,
			"itemStyle": {
				"color": "#76DBFB"
			}
		}],
		"avoidLabelOverlap": false,
		"labelLine": {
			"show": false
		},
		"itemStyle": {
			"normal": {
				"borderColor": "#76DBFB",
				"borderWidth": 1
			},
			"emphasis": {
				"borderColor": "#76DBFB",
				"borderWidth": 1
			}
		}
	}]
};
